package com.eqxiu.ieditor.dao;

import com.eqxiu.ieditor.entity.OrderItem;
import org.apache.ibatis.annotations.Param;

public interface OrderItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderItem record);

    int insertSelective(OrderItem record);

    OrderItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderItem record);

    int updateByPrimaryKey(OrderItem record);

    /**
     *
     * @description 查询订单下是否有购买某个项目,例如数据查看功能,数据推送功能
     * @author ranger
     * @date Aug 16, 2017
     * @modified by xxx 修改说明
     * @param code
     * @param itemType
     * @return
     */
    int countByItemType(@Param("userId") String userId, @Param("code") String code,
                        @Param("itemType") Integer itemType);

}